package com.baidu.ocr.ui.dialog;

import android.animation.AnimatorSet;
import android.content.Context;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.baidu.ocr.ui.R;


public class PermissoTipDialog extends BaseTopDialog{
    private TextView tv_permission_explanation_banner;

    private String permissionMessage;
    public PermissoTipDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected float setWidthScale() {
        return 1.0f;
    }

    @Override
    protected AnimatorSet setEnterAnim() {
        return null;
    }

    @Override
    protected AnimatorSet setExitAnim() {
        return null;
    }

    @Override
    protected void init() {
          tv_permission_explanation_banner = findViewById(R.id.tvPermissionMessage);

          tv_permission_explanation_banner.setText(permissionMessage);


    }

    @Override
    protected int getContentViewId() {
        return R.layout.permission_explanation_banner;
    }

    public void setPermissionMessage(String permissionMessage) {
        this.permissionMessage = permissionMessage;

    }


}
